package com.vchello.service.impl.entrepren;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.vchello.bean.entrepren.ProDeliveryMilepost;
import com.vchello.dao.entrepren.ProDeliveryMilepostDao;
import com.vchello.service.entrepren.ProDeliveryMilepostService;

/**
 * 
 * @author power
 *
 */
@Service(value = "proDeliveryMilepostService")
public class ProDeliveryMilepostServiceImpl extends ServiceImpl<ProDeliveryMilepostDao, ProDeliveryMilepost> implements ProDeliveryMilepostService {

	private ProDeliveryMilepostDao proDeliveryMilepostDao;

	@Override
	public boolean saveAllProDeliveryMilepost(List<ProDeliveryMilepost> list) {
		return proDeliveryMilepostDao.saveAllProDeliveryMilepost(list);
	}

	@Override
	public Integer updateProDeliveryMilepost(ProDeliveryMilepost entity) {
		return proDeliveryMilepostDao.updateById(entity);
	}

	@Override
	public void deleteProDeliveryMilepost(ProDeliveryMilepost entity) {
		proDeliveryMilepostDao.deleteById(entity);
	}

	@Override
	public ProDeliveryMilepost findProDeliveryMilepostById(int id) {
		return proDeliveryMilepostDao.selectById(id);
	}

}
